const express = require('express')
const router = express.Router()
const { auth } = require('../../utils')
// 导入用户路由处理函数对应的模块
const permission = require('../../router_handler/sys/permission')

// 获取列表
router.get('/', auth, permission.getList)
// 新增
router.post('/', auth, permission.addNew)
// 获取信息
router.get('/:id', auth, permission.getById)
// 更新信息
router.put('/:id', auth, permission.putById)
// 删除信息
router.delete('/:id', auth, permission.delById)

module.exports = router